﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ThereforeSystems.Samples.Google.UrlShortener
{
    /// <summary>
    /// Represents JSON payload received from Google.
    /// </summary>
    public class Reply
    {
        /// <summary>
        /// The fixed string "urlshortener#url".
        /// </summary>
        /// <value>urlshortener#url</value>
        public string kind { get; set; }

        /// <summary>
        /// Short URL, e.g. "http://goo.gl/l6MS".
        /// </summary>
        /// <value>The id.</value>
        public string id { get; set; }

        /// <summary>
        /// Long URL, e.g. "http://www.google.com/". 
        /// Might not be present if the status is "REMOVED".
        /// </summary>
        /// <value>The long URL.</value>
        public string longUrl { get; set; }

        /// <summary>
        /// Status of the target URL. 
        /// Possible values: "OK", "MALWARE", "PHISHING", or "REMOVED". 
        /// A URL might be marked "REMOVED" if it was flagged as spam, for example.
        /// </summary>
        /// <value>The status.</value>
        public string status { get; set; }


    }
}
